home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96b.txt / 000039_icon-group-sender _Mon Oct 21 08:27:33 1996.msg < prev    next >
Internet Message Format  |  1997-01-02  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 21 Oct 1996 10:19:52 MST
  2. Message-Id: <s26b3503.068@wise.net>
  3. X-Mailer: Novell GroupWise 4.1
  4. Date: Mon, 21 Oct 1996 08:27:33 -0600
  5. From: Charlie Hethcoat <CHETHCOA@oss.oceaneering.com>
  6. Cc: icon-group@cs.arizona.edu
  7. Subject: Saving Records, Lists, etc. to disk -Reply
  8. Encoding: 35 Text
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. (For distribution to the Icon group.)
  12.  
  13. Let me second that question!  I have been using Icon to experiment with interactive
  14. calculator programs of various types.  I have often wanted to save a ''workspace'' (a la APL),
  15. which is a snapshot of my session with variables, binary data structures, and various flag
  16. settings intact.  That way, I would be able to put a ''save'' instruction or command in my
  17. program's repertoire, and use it to drop what I'm working on the moment someone runs in and
  18. says ''Pizza!!''--secure in the knowledge that I can ''resume'' that session later.
  19.  
  20. There are ''images'' of icon data structures, but they are strings.  That might work, but I sort of
  21. doubt they were implemented for that purpose.  And they put a hit on your string storage
  22. region.  I haven't tried them for that purpose, because it seems there must be a better way.
  23.  
  24. There is also the ''save'' function, which saves an executable image of the program containing
  25. the call.  This seems to be similar to what is needed, but is only for re-running a program from
  26. scratch, and facility is only available to the Icon interpreter, not to the Icon programmer.
  27.  
  28. Charlie Hethcoat    chethcoa@oss.oceaneering.com
  29.  
  30. >>> "Lloyd M. Uhler, Jr." <luhler@khis.kodak.com> 1996 Oct 17, 06:21am >>>
  31. Is it possible to save one of advanced data types
  32. such as Record, List, Table, Set, ... to disk?
  33.  
  34. Then in another session, read this back in to an 
  35. Icon program.
  36.  
  37. For the tree structure illustrated on pages 
  38. 189-192,it is possible to convert this to a string.
  39.  
  40. What I am looking for is disk storage of the 
  41. structure in its "native" form and then later 
  42. access to this structure. It would seem this would
  43. be a good feature for Icon.
  44.  
  45.  
  46.